adjustValueForSplitsInt

Given a number of currency units on the given day, return the equivalent number of units in today's currency value. This is intended to be used mainly for stock splits. Note: the result is deliberately rounded after each split calculation as in real life the new post-split share qty would crystallize into real shares and this value needs to be constant. If you allowed a calculation to maintain decimal precision over several split calculations, then you could end up with a different final share quantity.


fun adjustValueForSplitsInt(txnDate: Int, value: Long, endDate: Int): Long

Given a number of currency units on the given day, return the equivalent number of units in the endDate's currency value. This is intended to be used mainly for stock splits. Note: the result is deliberately rounded after each split calculation as in real life the new post-split share qty would crystallize into real shares and this value needs to be constant. If you allowed a calculation to maintain decimal precision over several split calculations, then you could end up with a different final share quantity.